﻿using System.Collections.Generic;

namespace QntPlatform.Model
{
    public class RobotInfo:EntityBase<long>
    {
        public int UserId { get; set; }
        public string Name { get; set; }
        // 
        public int Status { get; set; }
        public string Key { get; set; }
        public string SKey { get; set; }
        public string Pair { get; set; }
        public string strategyId { get; set; }
        public string ExchangeId { get; set; }
        public string StrategyArgs { get; set; }
        /// <summary>
        /// 作为显示顺序号
        /// </summary>
        public string Ext1 { get; set; }
        public string Ext2 { get; set; }
        public string Ext3 { get; set; }
        public void SetStrategyArgs(Dictionary<string, string>   infos){
            StrParse pas=new StrParse();
            StrategyArgs= pas.ToText(infos);
        }
        public Dictionary<string, string>   GetStrategyArgsByStr(){
             StrParse pas=new StrParse();
            return pas.Parse<Dictionary<string, string>  >(StrategyArgs);
        }
    }

}
